home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / EPPC.a < prev    next >
Text File  |  1996-05-01  |  4KB  |  166 lines

  1. ;
  2. ;    File:        EPPC.a
  3. ;
  4. ;    Contains:    High Level Event Manager Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__EPPC__') = 'UNDEFINED' THEN
  19. __EPPC__ SET 1
  20.  
  21.     IF &TYPE('__ERRORS__') = 'UNDEFINED' THEN
  22.     include 'Errors.a'
  23.     ENDIF
  24.     IF &TYPE('__APPLETALK__') = 'UNDEFINED' THEN
  25.     include 'AppleTalk.a'
  26.     ENDIF
  27.     IF &TYPE('__FILES__') = 'UNDEFINED' THEN
  28.     include 'Files.a'
  29.     ENDIF
  30.     IF &TYPE('__PPCTOOLBOX__') = 'UNDEFINED' THEN
  31.     include 'PPCToolbox.a'
  32.     ENDIF
  33.     IF &TYPE('__PROCESSES__') = 'UNDEFINED' THEN
  34.     include 'Processes.a'
  35.     ENDIF
  36.     IF &TYPE('__EVENTS__') = 'UNDEFINED' THEN
  37.     include 'Events.a'
  38.     ENDIF
  39.  
  40.                                                             ; postOptions currently supported 
  41. receiverIDMask                    EQU        $0000F000
  42. receiverIDisPSN                    EQU        $00008000
  43. receiverIDisSignature            EQU        $00007000
  44. receiverIDisSessionID            EQU        $00006000
  45. receiverIDisTargetID            EQU        $00005000
  46. systemOptionsMask                EQU        $00000F00
  47. nReturnReceipt                    EQU        $00000200
  48. priorityMask                    EQU        $000000FF
  49. nAttnMsg                        EQU        $00000001
  50.  
  51.                                                             ; constant for return receipts 
  52. HighLevelEventMsgClass            EQU        'jaym'
  53. rtrnReceiptMsgID                EQU        'rtrn'
  54.  
  55. msgWasPartiallyAccepted            EQU        2
  56. msgWasFullyAccepted                EQU        1
  57. msgWasNotAccepted                EQU        0
  58.     IF FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED THEN
  59. TargetID                RECORD 0
  60. sessionID                 ds.l    1                ; offset: $0 (0)
  61. name                     ds        PPCPortRec        ; offset: $4 (4)
  62. location                 ds        LocationNameRec ; offset: $4C (76)
  63. recvrName                 ds        PPCPortRec        ; offset: $B4 (180)
  64. sizeof                     EQU *                    ; size:   $FC (252)
  65.                         ENDR
  66. ; typedef struct TargetID *                TargetIDPtr
  67.  
  68. ; typedef TargetIDPtr *                    TargetIDHandle
  69.  
  70. ; typedef TargetIDHandle                 TargetIDHdl
  71.  
  72. SenderID                RECORD 0
  73. f                         ds        TargetID
  74. sizeof                     EQU *                    ; size:   $FC (252)
  75.                         ENDR
  76.  
  77.  
  78. ; typedef struct SenderID *                SenderIDPtr
  79.  
  80.     ENDIF
  81. HighLevelEventMsg        RECORD 0
  82. HighLevelEventMsgHeaderLength  ds.w 1            ; offset: $0 (0)
  83. version                     ds.w    1                ; offset: $2 (2)
  84. reserved1                 ds.l    1                ; offset: $4 (4)
  85. theMsgEvent                 ds        EventRecord        ; offset: $8 (8)
  86. userRefcon                 ds.l    1                ; offset: $18 (24)
  87. postingOptions             ds.l    1                ; offset: $1C (28)
  88. msgLength                 ds.l    1                ; offset: $20 (32)
  89. sizeof                     EQU *                    ; size:   $24 (36)
  90.                         ENDR
  91. ; typedef struct HighLevelEventMsg *    HighLevelEventMsgPtr
  92.  
  93. ; typedef HighLevelEventMsgPtr *        HighLevelEventMsgHandle
  94.  
  95. ; typedef HighLevelEventMsgHandle         HighLevelEventMsgHdl
  96.  
  97.     IF FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED THEN
  98. ;
  99. ; pascal OSErr PostHighLevelEvent(const EventRecord *theEvent, unsigned long receiverID, unsigned long msgRefcon, void *msgBuff, unsigned long msgLen, unsigned long postingOptions)
  100. ;
  101.     IF ¨ GENERATINGCFM THEN
  102.         Macro
  103.         _PostHighLevelEvent
  104.             move.w              #$0034,-(sp)
  105.             dc.w                $A88F
  106.         EndM
  107.     ELSE
  108.         IMPORT_CFM_FUNCTION PostHighLevelEvent
  109.     ENDIF
  110.  
  111. ;
  112. ; pascal OSErr AcceptHighLevelEvent(TargetID *sender, unsigned long *msgRefcon, void *msgBuff, unsigned long *msgLen)
  113. ;
  114.     IF ¨ GENERATINGCFM THEN
  115.         Macro
  116.         _AcceptHighLevelEvent
  117.             move.w              #$0033,-(sp)
  118.             dc.w                $A88F
  119.         EndM
  120.     ELSE
  121.         IMPORT_CFM_FUNCTION AcceptHighLevelEvent
  122.     ENDIF
  123.  
  124. ;
  125. ; pascal OSErr GetProcessSerialNumberFromPortName(const PPCPortRec *portName, ProcessSerialNumber *pPSN)
  126. ;
  127.     IF ¨ GENERATINGCFM THEN
  128.         Macro
  129.         _GetProcessSerialNumberFromPortName
  130.             move.w              #$0035,-(sp)
  131.             dc.w                $A88F
  132.         EndM
  133.     ELSE
  134.         IMPORT_CFM_FUNCTION GetProcessSerialNumberFromPortName
  135.     ENDIF
  136.  
  137. ;
  138. ; pascal OSErr GetPortNameFromProcessSerialNumber(PPCPortRec *portName, const ProcessSerialNumber *pPSN)
  139. ;
  140.     IF ¨ GENERATINGCFM THEN
  141.         Macro
  142.         _GetPortNameFromProcessSerialNumber
  143.             move.w              #$0046,-(sp)
  144.             dc.w                $A88F
  145.         EndM
  146.     ELSE
  147.         IMPORT_CFM_FUNCTION GetPortNameFromProcessSerialNumber
  148.     ENDIF
  149.  
  150. ;
  151. ; pascal Boolean GetSpecificHighLevelEvent(GetSpecificFilterUPP aFilter, void *contextPtr, OSErr *err)
  152. ;
  153.     IF ¨ GENERATINGCFM THEN
  154.         Macro
  155.         _GetSpecificHighLevelEvent
  156.             move.w              #$0045,-(sp)
  157.             dc.w                $A88F
  158.         EndM
  159.     ELSE
  160.         IMPORT_CFM_FUNCTION GetSpecificHighLevelEvent
  161.     ENDIF
  162.  
  163.     ENDIF
  164.     ENDIF ; __EPPC__ 
  165.  
  166.